Optimal. Leaf size=38 \[ \frac {a c \tanh ^{-1}(\sin (e+f x))}{2 f}-\frac {a c \tan (e+f x) \sec (e+f x)}{2 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 38, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.107, Rules used = {3958, 2611, 3770} \[ \frac {a c \tanh ^{-1}(\sin (e+f x))}{2 f}-\frac {a c \tan (e+f x) \sec (e+f x)}{2 f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2611
Rule 3770
Rule 3958
Rubi steps
\begin {align*} \int \sec (e+f x) (a+a \sec (e+f x)) (c-c \sec (e+f x)) \, dx &=-\left ((a c) \int \sec (e+f x) \tan ^2(e+f x) \, dx\right )\\ &=-\frac {a c \sec (e+f x) \tan (e+f x)}{2 f}+\frac {1}{2} (a c) \int \sec (e+f x) \, dx\\ &=\frac {a c \tanh ^{-1}(\sin (e+f x))}{2 f}-\frac {a c \sec (e+f x) \tan (e+f x)}{2 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 38, normalized size = 1.00 \[ -a c \left (\frac {\tan (e+f x) \sec (e+f x)}{2 f}-\frac {\tanh ^{-1}(\sin (e+f x))}{2 f}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.45, size = 67, normalized size = 1.76 \[ \frac {a c \cos \left (f x + e\right )^{2} \log \left (\sin \left (f x + e\right ) + 1\right ) - a c \cos \left (f x + e\right )^{2} \log \left (-\sin \left (f x + e\right ) + 1\right ) - 2 \, a c \sin \left (f x + e\right )}{4 \, f \cos \left (f x + e\right )^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.66, size = 42, normalized size = 1.11 \[ \frac {c a \ln \left (\sec \left (f x +e \right )+\tan \left (f x +e \right )\right )}{2 f}-\frac {a c \sec \left (f x +e \right ) \tan \left (f x +e \right )}{2 f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.46, size = 68, normalized size = 1.79 \[ \frac {a c {\left (\frac {2 \, \sin \left (f x + e\right )}{\sin \left (f x + e\right )^{2} - 1} - \log \left (\sin \left (f x + e\right ) + 1\right ) + \log \left (\sin \left (f x + e\right ) - 1\right )\right )} + 4 \, a c \log \left (\sec \left (f x + e\right ) + \tan \left (f x + e\right )\right )}{4 \, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.24, size = 77, normalized size = 2.03 \[ \frac {a\,c\,\mathrm {atanh}\left (\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )\right )}{f}-\frac {a\,c\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^3+a\,c\,\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}{f\,\left ({\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^4-2\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2+1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ - a c \left (\int \left (- \sec {\left (e + f x \right )}\right )\, dx + \int \sec ^{3}{\left (e + f x \right )}\, dx\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________